import logging
import os
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
DATE_FORMAT = "%m/%d/%Y %H:%M:%S %p"

LOG_FILE = os.getenv("LOG_FILE")
if LOG_FILE == None:
    logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, datefmt=DATE_FORMAT)
else:
    logging.basicConfig(filename=LOG_FILE,level=logging.DEBUG, format=LOG_FORMAT, datefmt=DATE_FORMAT)